<?php $this->start('title') ?>
  <title><?php echo $post['Post']['title'] ?></title>
<?php $this->end(); ?>

<?php $this->start('meta') ?>
	<meta name="description" content="<?php echo $post['Post']['description'] ?> - vemaybay24h.com.vn" />
<?php $this->end(); ?>

<?php $this->start('menu')?>
	<?php echo $this->element('menu', 
														array("str_item" => Post::getMenuTab($post['Post']['rtype']))); ?>
<?php $this->end() ?>


<div id='icontent'>
	<div id='right-panel'>
		<?php echo $this->element('Frontpages/search_ticket'); ?>
		<div id='r_wrapper'>
		<?php echo $this->element('Frontpages/hot_ticket'); ?>
		<?php echo $this->element('Frontpages/book_phone'); ?>
		</div>
	</div> <!-- #r_wrapper-->
	<div id='l_wrapper'>
		<h1><?php echo $post['Post']['title'] ?></h1>
		<ul class='post-info'>
			<li class='li-date'><?php echo $post['Post']['created_at'] ?></li>
			<li class='li-who'> </li>
			<li class='li-comment'> 
				<?php echo ($post && count($post['Comments']) > 0) ? count($post['Comments'])." bình luận"  : "Chưa có bình luận nào" ?>
			</li>
			<li>
				<?php echo $this->Html->link($this->Html->image('facebook.png'), 
																		'http://www.facebook.com/sharer.php?u='.$_SERVER['REQUEST_URI'], 
																		array('target' => 'blank', 'title' => 'Share on Facebook', 'escape' => false) ); ?>
			</li>
		</ul>
		<div>
			<?php echo $this->Posts->thumbMedium($post, array('class' => 'img-dt')) ?>
			<?php echo $post['Post']['content'] ?>
		</div>
		<div>
			<h2>Các lời bình luận (<?php echo count($post['Comments']) ?>)</h2>
			<?php echo $this->element('Comments/comments', array('comments' => $post['Comments'])); ?>
		</div>
		<div id="respond">
		  <h2 class="commh2">Bình luận</h2>
		  <div class="cancel-comment-reply">
		    <%= render :file =>'comments/new'%>
			  <div class="fix"></div>
			</div>
		</div>
	</div> <!-- #l_wrapper -->
</div> <!-- #icontent -->

